package fun.xinnix.design.chain;

/**
 * @author Administrator
 */
public abstract class ChainHandler {
    /**
     * 下一个处理链
     */
    protected ChainHandler nextHandler;

    public void setNext(ChainHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    /**
     * 处理方法
     */
    public abstract void handler();
}
